package sg.edu.nus.iss.vmcs.system;

import sg.edu.nus.iss.vmcs.interfaces.StoreObjectFactory;
import sg.edu.nus.iss.vmcs.store.Coin;
import sg.edu.nus.iss.vmcs.store.StoreObject;

public class CoinFactory implements StoreObjectFactory {
	
	private static StoreObjectFactory coinFactory=null;
	
	private CoinFactory() {
		
	}
	
	public static StoreObjectFactory getCoinFactoryInstance() {
		if (coinFactory == null) {
			coinFactory = new CoinFactory();
			return coinFactory;
		} else
			return coinFactory;
	}	

	@Override
	public Coin create() {
		Coin coin = new Coin();
		return coin;
	}

}
